
import {fromJS} from "immutable"
const defaultState = fromJS({
    collapsed:false,
    count:1,
    title:'🚶🚶‍♂️🏃🏃‍♂️🏃‍♀️服务至上 顾客至上🌑🌒🌓🌔🌕🌖🌗🌘',
    adviseList:[],
    banner:[
        {
            imgUrl:"http://120.26.73.36/base/img/h1.jpg",
            id:""
        },
        {
            imgUrl:"http://120.26.73.36/base/img/h2.jpg",
            
            id:""
        },
        {
            imgUrl:"http://120.26.73.36/base/img/h3.jpg",
            
            id:""
        },
        {
            imgUrl:"http://120.26.73.36/base/img/h4.jpg",
            
            id:""
        },
        {
            imgUrl:"http://120.26.73.36/base/img/h5.jpg",
            
            id:""
        }
    ]
})

export const  data = (state=defaultState,action)=>{
    
    const {type,payload} = action 


    switch(type){
        case "changecollapsed":
        return state.set('collapsed',payload)
        break;


        default:
        return state;
        break;
    }
}